


with open("src.txt",encoding='utf8', errors='ignore') as f:
    src = f.readlines()

with open("dst.txt",encoding='utf8', errors='ignore') as f:
    dst = f.readlines()

src_dict = {}
for line in src:
    # print(line.split(' ')[0],line.split(' ')[1])
    src_dict[line.split(' ')[0]]=line.split(' ')[1]


for line in dst:
    line_type = src_dict.get(line.strip())
    if line_type is not None: print(line.strip())
